<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Serialize a single value into a WDDX packet</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.wddx-serialize-value" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">wddx_serialize_value</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">wddx_serialize_value</span> &mdash; <span class="dc-title">Serialize a single value into a WDDX packet</span></p>

 </div>
 
 <div id="function.wddx-serialize-value-refsynopsisdiv">
  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function has been
<em class="emphasis">DEPRECATED</em> as of PHP 7.4.0. Relying on this function
is highly discouraged.</p></div>
 </div>

 <div class="refsect1 description" id="refsect1-function.wddx-serialize-value-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>wddx_serialize_value</strong></span>
    ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$var</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$comment</code></span>
  ] ) : <span class="type">string</span></div>

  <p class="para rdfs-comment">
   Creates a WDDX packet from a single given value.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.wddx-serialize-value-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">var</code></dt>

     <dd>

      <p class="para">
       The value to be serialized
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">comment</code></dt>

     <dd>

      <p class="para">
       An optional comment string that appears in the packet header.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.wddx-serialize-value-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the WDDX packet, or <strong><code>FALSE</code></strong> on error.
  </p>
 </div>

</div></div></div></body></html>